define(() => {
    return function(cont, res, val) {
        cont[0].innerHTML += `<tr index="${res.sku}">
        <td>
            <label for=""> 
            <input type="checkbox" class="check" ${val.flag ? 'checked' : ''}>
            </label>
        </td>
        <td>
            <a href="">
                <img src="${res.img}" alt="">
            </a>
        </td>
        <td>
            <p><a href="">${res.text}</a></p>
            <p>Warehouse: CN-1</p>
        </td>
        <td>
            <p>SKU: ${res.sku}</p>
            <p>Color:BLACK</p>
        </td>
        <td>
            <span>
            ${res.price}
            </span>
        </td>
        <td>
            <div class="qty">
                <a href="" class="minus"></a>
                <input type="text" placeholder="${val.num}" class="setNum">
                <a href="" class="plus"></a>
            </div>
            <p>
                Available Stock:${res.stock}
            </p>
        </td>
        <td>
            <span>${res.price}</span>
        </td>
        <td>
            <a href="" class="del">remove</a>
        </td>
    </tr>`;
    }
})

// `<tr index="${res.proId}">
//             <td><input type="checkbox" class="check" ${val.flag ? 'checked' : ''}></td>
//             <td><img src="${res.img}" alt=""></td>
//             <td>${res.proName}</td>
//             <td><input type="number" value="${val.num}" class="setNum"></td>
//             <td>${res.price}</td>
//             <td>${res.price * val.num}</td>
//             <td><input type="button" value="删除" class="del"></td>
//         </tr>`